package com.dc.gameserver.serverCore.model.dbsql.modelVo;

import java.util.ArrayList;
import java.util.List;

public class TRoleItemPropsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public TRoleItemPropsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPropsidIsNull() {
            addCriterion("PROPSID is null");
            return (Criteria) this;
        }

        public Criteria andPropsidIsNotNull() {
            addCriterion("PROPSID is not null");
            return (Criteria) this;
        }

        public Criteria andPropsidEqualTo(Integer value) {
            addCriterion("PROPSID =", value, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidNotEqualTo(Integer value) {
            addCriterion("PROPSID <>", value, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidGreaterThan(Integer value) {
            addCriterion("PROPSID >", value, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("PROPSID >=", value, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidLessThan(Integer value) {
            addCriterion("PROPSID <", value, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidLessThanOrEqualTo(Integer value) {
            addCriterion("PROPSID <=", value, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidIn(List<Integer> values) {
            addCriterion("PROPSID in", values, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidNotIn(List<Integer> values) {
            addCriterion("PROPSID not in", values, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidBetween(Integer value1, Integer value2) {
            addCriterion("PROPSID between", value1, value2, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropsidNotBetween(Integer value1, Integer value2) {
            addCriterion("PROPSID not between", value1, value2, "propsid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidIsNull() {
            addCriterion("PROPSTYPEID is null");
            return (Criteria) this;
        }

        public Criteria andPropstypeidIsNotNull() {
            addCriterion("PROPSTYPEID is not null");
            return (Criteria) this;
        }

        public Criteria andPropstypeidEqualTo(Integer value) {
            addCriterion("PROPSTYPEID =", value, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidNotEqualTo(Integer value) {
            addCriterion("PROPSTYPEID <>", value, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidGreaterThan(Integer value) {
            addCriterion("PROPSTYPEID >", value, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("PROPSTYPEID >=", value, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidLessThan(Integer value) {
            addCriterion("PROPSTYPEID <", value, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidLessThanOrEqualTo(Integer value) {
            addCriterion("PROPSTYPEID <=", value, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidIn(List<Integer> values) {
            addCriterion("PROPSTYPEID in", values, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidNotIn(List<Integer> values) {
            addCriterion("PROPSTYPEID not in", values, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidBetween(Integer value1, Integer value2) {
            addCriterion("PROPSTYPEID between", value1, value2, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropstypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("PROPSTYPEID not between", value1, value2, "propstypeid");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiIsNull() {
            addCriterion("PROPSPINZHI is null");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiIsNotNull() {
            addCriterion("PROPSPINZHI is not null");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiEqualTo(Byte value) {
            addCriterion("PROPSPINZHI =", value, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiNotEqualTo(Byte value) {
            addCriterion("PROPSPINZHI <>", value, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiGreaterThan(Byte value) {
            addCriterion("PROPSPINZHI >", value, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiGreaterThanOrEqualTo(Byte value) {
            addCriterion("PROPSPINZHI >=", value, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiLessThan(Byte value) {
            addCriterion("PROPSPINZHI <", value, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiLessThanOrEqualTo(Byte value) {
            addCriterion("PROPSPINZHI <=", value, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiIn(List<Byte> values) {
            addCriterion("PROPSPINZHI in", values, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiNotIn(List<Byte> values) {
            addCriterion("PROPSPINZHI not in", values, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiBetween(Byte value1, Byte value2) {
            addCriterion("PROPSPINZHI between", value1, value2, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropspinzhiNotBetween(Byte value1, Byte value2) {
            addCriterion("PROPSPINZHI not between", value1, value2, "propspinzhi");
            return (Criteria) this;
        }

        public Criteria andPropsnumIsNull() {
            addCriterion("PROPSNUM is null");
            return (Criteria) this;
        }

        public Criteria andPropsnumIsNotNull() {
            addCriterion("PROPSNUM is not null");
            return (Criteria) this;
        }

        public Criteria andPropsnumEqualTo(Integer value) {
            addCriterion("PROPSNUM =", value, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumNotEqualTo(Integer value) {
            addCriterion("PROPSNUM <>", value, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumGreaterThan(Integer value) {
            addCriterion("PROPSNUM >", value, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("PROPSNUM >=", value, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumLessThan(Integer value) {
            addCriterion("PROPSNUM <", value, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumLessThanOrEqualTo(Integer value) {
            addCriterion("PROPSNUM <=", value, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumIn(List<Integer> values) {
            addCriterion("PROPSNUM in", values, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumNotIn(List<Integer> values) {
            addCriterion("PROPSNUM not in", values, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumBetween(Integer value1, Integer value2) {
            addCriterion("PROPSNUM between", value1, value2, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropsnumNotBetween(Integer value1, Integer value2) {
            addCriterion("PROPSNUM not between", value1, value2, "propsnum");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutIsNull() {
            addCriterion("PROPSTIMEOUT is null");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutIsNotNull() {
            addCriterion("PROPSTIMEOUT is not null");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutEqualTo(Long value) {
            addCriterion("PROPSTIMEOUT =", value, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutNotEqualTo(Long value) {
            addCriterion("PROPSTIMEOUT <>", value, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutGreaterThan(Long value) {
            addCriterion("PROPSTIMEOUT >", value, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutGreaterThanOrEqualTo(Long value) {
            addCriterion("PROPSTIMEOUT >=", value, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutLessThan(Long value) {
            addCriterion("PROPSTIMEOUT <", value, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutLessThanOrEqualTo(Long value) {
            addCriterion("PROPSTIMEOUT <=", value, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutIn(List<Long> values) {
            addCriterion("PROPSTIMEOUT in", values, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutNotIn(List<Long> values) {
            addCriterion("PROPSTIMEOUT not in", values, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutBetween(Long value1, Long value2) {
            addCriterion("PROPSTIMEOUT between", value1, value2, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andPropstimeoutNotBetween(Long value1, Long value2) {
            addCriterion("PROPSTIMEOUT not between", value1, value2, "propstimeout");
            return (Criteria) this;
        }

        public Criteria andOwneridIsNull() {
            addCriterion("OWNERID is null");
            return (Criteria) this;
        }

        public Criteria andOwneridIsNotNull() {
            addCriterion("OWNERID is not null");
            return (Criteria) this;
        }

        public Criteria andOwneridEqualTo(Integer value) {
            addCriterion("OWNERID =", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridNotEqualTo(Integer value) {
            addCriterion("OWNERID <>", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridGreaterThan(Integer value) {
            addCriterion("OWNERID >", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridGreaterThanOrEqualTo(Integer value) {
            addCriterion("OWNERID >=", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridLessThan(Integer value) {
            addCriterion("OWNERID <", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridLessThanOrEqualTo(Integer value) {
            addCriterion("OWNERID <=", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridIn(List<Integer> values) {
            addCriterion("OWNERID in", values, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridNotIn(List<Integer> values) {
            addCriterion("OWNERID not in", values, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridBetween(Integer value1, Integer value2) {
            addCriterion("OWNERID between", value1, value2, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridNotBetween(Integer value1, Integer value2) {
            addCriterion("OWNERID not between", value1, value2, "ownerid");
            return (Criteria) this;
        }

        public Criteria andItemtypeIsNull() {
            addCriterion("ITEMTYPE is null");
            return (Criteria) this;
        }

        public Criteria andItemtypeIsNotNull() {
            addCriterion("ITEMTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andItemtypeEqualTo(Byte value) {
            addCriterion("ITEMTYPE =", value, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeNotEqualTo(Byte value) {
            addCriterion("ITEMTYPE <>", value, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeGreaterThan(Byte value) {
            addCriterion("ITEMTYPE >", value, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("ITEMTYPE >=", value, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeLessThan(Byte value) {
            addCriterion("ITEMTYPE <", value, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeLessThanOrEqualTo(Byte value) {
            addCriterion("ITEMTYPE <=", value, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeIn(List<Byte> values) {
            addCriterion("ITEMTYPE in", values, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeNotIn(List<Byte> values) {
            addCriterion("ITEMTYPE not in", values, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeBetween(Byte value1, Byte value2) {
            addCriterion("ITEMTYPE between", value1, value2, "itemtype");
            return (Criteria) this;
        }

        public Criteria andItemtypeNotBetween(Byte value1, Byte value2) {
            addCriterion("ITEMTYPE not between", value1, value2, "itemtype");
            return (Criteria) this;
        }

        public Criteria andDayuselimitIsNull() {
            addCriterion("DAYUSELIMIT is null");
            return (Criteria) this;
        }

        public Criteria andDayuselimitIsNotNull() {
            addCriterion("DAYUSELIMIT is not null");
            return (Criteria) this;
        }

        public Criteria andDayuselimitEqualTo(Byte value) {
            addCriterion("DAYUSELIMIT =", value, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitNotEqualTo(Byte value) {
            addCriterion("DAYUSELIMIT <>", value, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitGreaterThan(Byte value) {
            addCriterion("DAYUSELIMIT >", value, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitGreaterThanOrEqualTo(Byte value) {
            addCriterion("DAYUSELIMIT >=", value, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitLessThan(Byte value) {
            addCriterion("DAYUSELIMIT <", value, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitLessThanOrEqualTo(Byte value) {
            addCriterion("DAYUSELIMIT <=", value, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitIn(List<Byte> values) {
            addCriterion("DAYUSELIMIT in", values, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitNotIn(List<Byte> values) {
            addCriterion("DAYUSELIMIT not in", values, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitBetween(Byte value1, Byte value2) {
            addCriterion("DAYUSELIMIT between", value1, value2, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andDayuselimitNotBetween(Byte value1, Byte value2) {
            addCriterion("DAYUSELIMIT not between", value1, value2, "dayuselimit");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("TYPE is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("TYPE =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("TYPE <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("TYPE >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("TYPE >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("TYPE <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("TYPE <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("TYPE in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("TYPE not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("TYPE between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("TYPE not between", value1, value2, "type");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}